package com.team7.stat.controller;

import com.team7.stat.entity.Order;
import com.team7.stat.service.OrderService;
import com.team7.stat.utils.CommonResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName: OrderController
 * @Description: 订单 前端控制器
 * @Author: 赵孟阳
 * @Date: 2021/10/19 21:33
 */
@RestController
@RequestMapping("/stat/order")
@Api(tags = "每日销售金额")
public class OrderController {
    @Resource
    private OrderService orderService;
    @PostMapping("/queryAllOrderBang")
    public CommonResult queryAllOrderBang(@RequestBody Order order){
        CommonResult commonResult = orderService.queryAllOrderBang(order);
        System.out.println("订单查询的费用" + commonResult);
        return commonResult;
    }
}
